import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { GameDefConfig } from "../../../resource/GameDefConfig";
import { ColorConfig } from "../../../resource/ColorConfig";
import { CareerConfig } from "../../../resource/CareerConfig";
import { SEntityId } from "../../../../../Message/Public/SEntityId";
import { EntityUtil } from "../../../scene/layer/utils/EntityUtil";
import { SPublicMiniPlayer } from "../../../../../Message/Public/SPublicMiniPlayer";
type int = number;
//class PlayerUtil
    
    export  class PlayerUtil
    {
        

        public static getCampHtml(arg1: int): string
        {
            return HTMLUtil.addColor(GameDefConfig.instance.getECamp(arg1), ColorConfig.instance.getCampColor(arg1).color);
        }

        public static getShortCampHtml(arg1: int): string
        {
            if (arg1 > 0 && arg1 <= 3) 
            {
                return HTMLUtil.addColor(GameDefConfig.instance.getCampShort(arg1).name, ColorConfig.instance.getCountryColor(arg1).color);
            }
            return "";
        }

        public static getCareerHtml(arg1: int): string
        {
            return CareerConfig.instance.getInfoByCode(arg1).name;
        }

        public static getProxyMsg(arg1: SEntityId): string
        {
            return EntityUtil.getProxyName(arg1);
        }

        public static getProxyAndName(arg1: SPublicMiniPlayer): string
        {
            return "[" + PlayerUtil.getProxyMsg(arg1.entityId) + "] " + arg1.name;
        }

        public static getProxyAndNameByEntityIdAndName(arg1: SEntityId, arg2: string): string
        {
            return "[" + PlayerUtil.getProxyMsg(arg1) + "] " + arg2;
        }
    }
